This folder contains the replication codes and data sets needed to reproduce the figures and tables in the paper by Bas, Coe, and Gheorghe.

For Stata files, Stata version 17 was used on a Windows machine.

For R files, R version 4.2.0 was used on a Windows machine. 

BCG_JOP_ReplicationData.dta is the main replication data set.

CODEBOOK.docx is the codebook for BCG_JOP_ReplicationData.dta.

ReplicationFile.do is the main replication file for 61 regressions included in Tables 2 and 3 in the paper, and Tables 7-13 in the Appendix. It requires the data set BCG_JOP_ReplicationData.dta. The log file for these analyses is titled LogforRegressionModels.smcl.

Binomial Tests.R file replicates the binomial tests for Table 1 in the paper, and Tables 1-6 in the Appendix. The log file for these analyses is titled LogforTable1BinomialTests.txt. 

PaperFigure1.do: before running this code, load BCG_JOP_ReplicationData.dta first. Stata needs to have the Clarify package installed (The first two lines of the code checks and installs Clarify if needed.) This file includes the simulation code to generate two sub-figures for Figure 1 in the paper. Depending on the machine, this one might take a few minutes or longer to complete. The log file for this code is LogforFigure1.scml. 
    
AppendixFigure1_Simulation.do file includes the simulation code for Appendix Figure 1 in Appendix Section E "Why Deal Results are Inconclusive." Start with a new Stata instance to run this code. Depending on the processor, it may take about an hour to finish the simulation. The log file for this code is LogforAppendixFigure1.scml. 
